Installing NVIDIA Drivers

NVIDIA drivers are specialized software designed for NVIDIA GPUs (Graphics Processing Units), serving as the bridge between computer systems and NVIDIA GPUs. These drivers enable the operating system to recognize and communicate with the GPU, unlocking its full functionality and performance.

sudo ufw disable
lspci | grep -i nvidia
apt-get update
apt install gcc g++ make build-essential libglvnd-dev
Note:

Ensure the driver's major version is 550 when downloading.

NVIDIA driver download page
Figure: Downloading NVIDIA Drivers from Official Website
chmod +x NVIDIA-Linux-x86_64-550.54.14.run
./NVIDIA-Linux-x86_64-550.54.14.run

After installation, execute the following command. The output shown below indicates successful installation.

nvidia-smi
nvidia-smi command output
Figure: Verifying NVIDIA Driver Installation
  1. Permanently disable firewall
  2. Check for NVIDIA GPU and model (e.g., RTX 4060/4090)
  3. Update package lists
  4. Install required software packages and dependencies
  5. Download NVIDIA drivers from Official Website (https://www.nvidia.cn/drivers/unix/)
  6. Grant installation permissions to driver package
  7. Install drivers (follow on-screen prompts)
  8. Verify installation results